package com.bolang.onlycode.demo.ThreadPool;

public class WorkerTest  implements  Runnable{
    private Thread thread;
    private Runnable firstTask;

    @Override
    public void run() {
        System.out.println("我被执行了");
    }

    public Thread getThread() {
        return thread;
    }

    public void setThread(Thread thread) {
        this.thread = thread;
    }

    public Runnable getFirstTask() {
        return firstTask;
    }

    public void setFirstTask(Runnable firstTask) {
        this.firstTask = firstTask;
    }
}
